#!/bin/bash
#SBATCH -A b1048 
#SBATCH -p buyin
#SBATCH --time=92:00:00
#SBATCH --mail-type=BEGIN,END,FAIL
#SBATCH --mail-user=iacanay@northwestern.edu
#SBATCH -J Run-0408
#SBATCH -N 1
#SBATCH -n 4
#SBATCH --array=1-12%12 # make sure the array number matches the number of lines in your input file!
#SBATCH --error=arrayJob_%A_%a.err
#SBATCH --output=arrayJob_%A_%a.out

# load modules you need to use
module load R/4.1.0

# A command you actually want to execute:
Rscript NICS.Main.R $(sed -n ${SLURM_ARRAY_TASK_ID}p param-NICS.txt)
